﻿namespace System.IO
{
	public static class FileExt
	{
		public static string ReadAllText(string path)
		{
#if PocketPC
			using(var sr = new StreamReader(path))
			{
				return sr.ReadToEnd();
			}
#else
			return File.ReadAllText(path);
#endif
		}

		public static void WriteAllText(string path, string message)
		{
#if PocketPC
			using(var sw = new StreamWriter(path))
			{
				sw.Write(message);
			}
#else
			File.WriteAllText(path, message);
#endif
		}


	}
}
